//继承模板
{extend name="public/base"}


//CSS
{block name="style"}
<link rel="stylesheet" href="__ADMIN_STATIC__/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
{/block}


{block name="breadcrumb" title="当前位置"}{/block}

//正文区域
{block name="body"}{//---------------------------------------------------------------------------}
<article class="page-container">
    <form class="form form-horizontal" id="form1">
        <div id="tab-category" class="HuiTab">
            <div class="tabBar cl">

{volist name="['edit'=>'基本信息' ,'apply'=>'申请人' ,'audit'=>'审批流程' ]" id="item"}

                <span {if condition="request()->action() eq $key"}class="current"{/if}>
                    <a href="{:url($key,['id'=>$info.id])}">{$item}</a>
                </span>
{/volist}


            </div>
            <div class="tabCon" id="" style="display:block;">

{if condition="!$info"}
            <div class="no_content">
            流程信息不存在！！！，请先添加流程。。。
            </div>
{else}

    

    <div class="cl pd-5 bg-1 bk-gray mb-10">
    <span class="l">

    <button onclick="process_add()" class="btn btn-primary radius" type="button" id="btn_process_add">
        <i class="Hui-iconfont"></i> 添加步骤
    </button>
&nbsp;&nbsp;&nbsp;
    <button onclick="process_save()" class="btn btn-secondary radius" type="button" id="btn_process_save">
        <i class="Hui-iconfont"></i> 保存修改
    </button>

    <span style=" line-height:30px; color:#CCCCCC; margin-left:10px; color:#ff0000;">&lt;--修改后务必点击保存</span>

    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>

    </span> 
    <span class="r ml-20">
        <button onclick="location.replace(location.href)" class="btn btn-success radius" type="button">
        <i class="Hui-iconfont"></i> 刷新
        </button>
    </span>
  
    </div>

    <table class="table table-border table-bordered table-bg">
        <thead>
            <tr class="text-c">
                <th width="60">
                    步骤
                </th>
                <th>岗位名称</th>
                <th width="150">操作</th>
            </tr>
        </thead>
        <tbody id="process_tbody">

            <tr class="text-c">
                <td>
                    第<span class="step_num">1</span>步
                </td>
                <td class="text-l"> 
                    <div data-role="1">总公司 / 公司A / A-1 [岗位:员工A]</div>
                </td>
                <td>
                    <button onclick="list_copy(19)" type="button" class="btn btn-secondary radius size-MINI">
                        <i class="Hui-iconfont"></i> 修改
                    </button>
                    &nbsp;
                    <button onclick="list_del('/admin/role/del.html')" class="btn btn-danger radius size-MINI" type="button">
                        <i class="Hui-iconfont"></i> 删除
                    </button>
                </td>
            </tr>
            

        </tbody>
    </table>
  





{/if}  
            </div>

        </div>




        
    </form>
</article>



{/block}
//-----------------------------------------------------------------------------------------------


<!--请在下方写此页面业务相关的脚本-->
//-----------------------------------------------------------------------------------------------
{block name="script"}

<script type="text/javascript">
    var process_id = {$info.id};
    var listjson = {$listjson};
    var url_save = '{:url('auditSave')}';
</script>
<script type="text/javascript" src="__ADMIN_STATIC__/project/js/ztreeSelect.js"></script>
<script type="text/javascript" src="__ADMIN_STATIC__/project/js/process_audit.js"></script>

<style>
    

    
</style>



{/block}{//---------------------------------------------------------------------------}